package com.str.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Author: ZhangWu, Anything is possible!
 * @CreateTime: 2023/04/13 21:52
 * @Description: 添加对应角色用户信息请求dto
 */
@Data
@ApiModel("添加对应角色用户信息请求dto")
public class AddRoleUserListDto {

    /**
     * 角色id
     */
    @ApiModelProperty(value = "角色id")
    @NotNull(message = "角色id不能为空")
    private String roleId;

    /**
     * 用户id集合
     */
    @ApiModelProperty(value = "用户id集合")
    @NotEmpty(message = "用户id集合不能为空")
    private List<String> userIds;
}
